package com.san.hkhospital.controller;
import com.san.hkhospital.entity.DeptSection;
import com.san.hkhospital.service.DeptSectionService;
import com.san.hkhospital.service.PositionService;
import com.san.hkhospital.service.impl.DeptSectionServiceImpl;
import com.san.hkhospital.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
* (dept_section)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/dept_section")
public class DeptSectionController {
/**
* 服务对象
*/
@Resource
private DeptSectionServiceImpl deptSectionServiceImpl;
@Autowired
    private DeptSectionService deptSectionService;


    @RequestMapping("selectDeptSection")
    public ResultVO selectDeptSection(){
        return ResultVO.success("查询成功", deptSectionService.selectDeptSection());
    }


}
